package club.pchome.service;

import club.pchome.common.util.PageUtil;
import club.pchome.dao.CSmsDao;
import club.pchome.model.CSms;
import club.pchome.model.TOrder;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service
public class CSmsService extends BaseService{

    @Autowired
    CSmsDao cSmsDao;

    public PageUtil<CSms> smsPageUtil(PageUtil<CSms> pu, Map<String, Object> map){
        pu.pageUtilHandle(cSmsDao.smsListCount(map));
        map.put("startRow", pu.getStartRow());
        map.put("pageSize", pu.getPageSize());
        pu.setDataList(cSmsDao.smsList(map));
        return pu;
    }
}
